package cn.NewsService;

import cn.entity.News1;

import java.util.List;

public interface NewsService {
    //查
    public List<News1> ServiceSelectAll();
    public News1 ServiceSselectById(int id);
    //增
    public int ServiceSinsertNews(News1 news);
    //删
    public int ServiceSdeleteById(int id);
    public int ServiceSdeleteByName(String name);
    //改
    public int ServiceSupdateById(int id);
    public int ServiceSupdateByByName(String name);

}
